<?php
/*
 * 添加用户和修改用户信息
 */
?>
<!--设置图片上传后预览的div样式-->
<style type="text/css">
    #preview, .logos
    {
        width:200px;
        height:200px;
    }
    #preview
    {
        border:1px solid #000;
    }
</style>
<!--页面主要内容-->
<main class="lyear-layout-content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-10">
                <div class="card">
                    <div class="card-header"><h4><?=$data['title']?></h4></div>
                    <div class="card-body">

                        <form class="form-horizontal" id="from_user">
                            <div class="form-group">
                                <label class="col-xs-12" for="example-text-input">用户名称</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text"  name="user" placeholder="用户名称" value="<?=!empty($data['user'])?$data['user']:''?>" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12" for="example-email-input">到期时间</label>
                                <div class="col-xs-12">
<!--                                    <input class="form-control" type="email"  name="due_time" placeholder="到期时间">-->
                                    <input class="form-control js-datepicker m-b-10" type="text"  name="due_time" placeholder="yyyy-mm-dd"  data-date-format="yyyy-mm-dd"  value="<?=!empty($data['time'])?$data['time']:''?>" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12" for="example-text-input">原地址</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text"  name="address" placeholder="原地址" value="<?=!empty($data['address'])?$data['address']:''?>" />
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-12">
                                    <button type="button" class="btn btn-info" onclick="adduser.submit(<?=!empty($data['id'])?$data['id']:''?>)">提 交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="col-md-1"></div>
        </div>
    </div>
    </div>
</main>
<!--End 页面主要内容-->